/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataStructures;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Manuel
 */
public class Metrics {

    private String name;
    private double wmc;
    private double lcom;
    private double dit;
    private double noc;
    private double rfc;
    private double npm;
    private double cbo;
    private double fanin;
    private double fanout;
    private double maxwmc;
    private double maxlcom;
    private double maxdit;
    private double maxnoc;
    private double maxrfc;
    private double maxnpm;
    private double maxcbo;
    private double maxfanin;
    private double maxfanout;
    private double minwmc;
    private double minlcom;
    private double mindit;
    private double minnoc;
    private double minrfc;
    private double minnpm;
    private double mincbo;
    private double minfanin;
    private double minfanout;
    private Date releaseDate;
    //date for jaxb in string
    private String sDate;

    public Metrics() {
        this.wmc = -1d;
        this.lcom = -1d;
        this.dit = -1d;
        this.noc = -1d;
        this.rfc = -1d;
        this.npm = -1d;
        this.cbo = -1d;
        this.fanin = -1d;
        this.fanout = -1d;

        this.maxwmc = -1d;
        this.maxlcom = -1d;
        this.maxdit = -1d;
        this.maxnoc = -1d;
        this.maxrfc = -1d;
        this.maxnpm = -1d;
        this.maxcbo = -1d;
        this.maxfanin = -1d;
        this.maxfanout = -1d;

        this.minwmc = -1d;
        this.minlcom = -1d;
        this.mindit = -1d;
        this.minnoc = -1d;
        this.minrfc = -1d;
        this.minnpm = -1d;
        this.mincbo = -1d;
        this.minfanin = -1d;
        this.minfanout = -1d;
    }



    public double getDit() {
        return dit;
    }

    public void setDit(double dit) {
        this.dit = dit;
    }

    public double getLcom() {
        return lcom;
    }

    public void setLcom(double lcom) {
        this.lcom = lcom;
    }

    public double getNoc() {
        return noc;
    }

    public void setNoc(double noc) {
        this.noc = noc;
    }

    public double getRfc() {
        return rfc;
    }

    public void setRfc(double rfc) {
        this.rfc = rfc;
    }

    public double getWmc() {
        return wmc;
    }

    public void setWmc(double wmc) {
        this.wmc = wmc;
    }

    public double getCbo() {
        return cbo;
    }

    public void setCbo(double cbo) {
        this.cbo = cbo;
    }

    public double getFanin() {
        return fanin;
    }

    public void setFanin(double fanin) {
        this.fanin = fanin;
    }

    public double getFanout() {
        return fanout;
    }

    public void setFanout(double fanout) {
        this.fanout = fanout;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date d) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd");
            this.releaseDate = d;
            this.sDate = sdf.format(d);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getNpm() {
        return npm;
    }

    public void setNpm(double npm) {
        this.npm = npm;
    }

    public double getMaxcbo() {
        return maxcbo;
    }

    public void setMaxcbo(double maxcbo) {
        this.maxcbo = maxcbo;
    }

    public double getMaxdit() {
        return maxdit;
    }

    public void setMaxdit(double maxdit) {
        this.maxdit = maxdit;
    }

    public double getMaxfanin() {
        return maxfanin;
    }

    public void setMaxfanin(double maxfanin) {
        this.maxfanin = maxfanin;
    }

    public double getMaxfanout() {
        return maxfanout;
    }

    public void setMaxfanout(double maxfanout) {
        this.maxfanout = maxfanout;
    }

    public double getMaxlcom() {
        return maxlcom;
    }

    public void setMaxlcom(double maxlcom) {
        this.maxlcom = maxlcom;
    }

    public double getMaxnoc() {
        return maxnoc;
    }

    public void setMaxnoc(double maxnoc) {
        this.maxnoc = maxnoc;
    }

    public double getMaxnpm() {
        return maxnpm;
    }

    public void setMaxnpm(double maxnpm) {
        this.maxnpm = maxnpm;
    }

    public double getMaxrfc() {
        return maxrfc;
    }

    public void setMaxrfc(double maxrfc) {
        this.maxrfc = maxrfc;
    }

    public double getMaxwmc() {
        return maxwmc;
    }

    public void setMaxwmc(double maxwmc) {
        this.maxwmc = maxwmc;
    }

    public double getMincbo() {
        return mincbo;
    }

    public void setMincbo(double mincbo) {
        this.mincbo = mincbo;
    }

    public double getMindit() {
        return mindit;
    }

    public void setMindit(double mindit) {
        this.mindit = mindit;
    }

    public double getMinfanin() {
        return minfanin;
    }

    public void setMinfanin(double minfanin) {
        this.minfanin = minfanin;
    }

    public double getMinfanout() {
        return minfanout;
    }

    public void setMinfanout(double minfanout) {
        this.minfanout = minfanout;
    }

    public double getMinlcom() {
        return minlcom;
    }

    public void setMinlcom(double minlcom) {
        this.minlcom = minlcom;
    }

    public double getMinnoc() {
        return minnoc;
    }

    public void setMinnoc(double minnoc) {
        this.minnoc = minnoc;
    }

    public double getMinnpm() {
        return minnpm;
    }

    public void setMinnpm(double minnpm) {
        this.minnpm = minnpm;
    }

    public double getMinrfc() {
        return minrfc;
    }

    public void setMinrfc(double minrfc) {
        this.minrfc = minrfc;
    }

    public double getMinwmc() {
        return minwmc;
    }

    public void setMinwmc(double minwmc) {
        this.minwmc = minwmc;
    }

    public String getsDate() {
        return sDate;
    }



}
